﻿using TradeMeSDK;

namespace TradeMo
{
    public class BidViewModel : BaseViewModel
    {
        public Bid Bid { get; set; }

        public string BidAmount
        {
            get
            {
                return string.Format("${0:0.00}", Bid.BidAmount);
            }
        }

        public string BidDate
        {
            get
            {
                return Bid.BidDate.ToString("d MMM, hh:mm tt");
            }
        }

        public string Nickname
        {
            get
            {
                return string.Format("{0} ({1})", Bid.Bidder.Nickname, Bid.Bidder.UniquePositive);
            }
        }


    }
}